All Questions
1 question
- Bountied 0
- Unanswered
- Frequent
- Score
- Trending
- Week
- Month
- Unanswered (my tags)
5votes
3answers
2kviews
Find smallest number of squares that sum to a number
Leetcode problem 279 “Perfect Squares” is: Given a positive integer n, find the least number of perfect square numbers (for example, 1, 4, 9, 16, ...) I wrote the following solution: ...
- The Overflow Blog
- Featured on Meta
Hot Network Questions
- Collision probability of reduced density matrix of a Haar random state
- Are these chainrings or cassette cooked? 3 year old road bike
- How To Handle Daughter's Bathroom (#2) Accident?
- Doubt regarding center of mass of a cone
- In Canada's 2025 election, what have either Poilievre or Carney, as candidates for Prime Minister, said about balancing the budget?
- Why are US executive orders so controversial? Aren't they just the chief executive telling the executive branch what to do?
- Fill a space made by three arcs
- How to convincingly erase a population's memory?
- Idiomatic way of generating a unique filename?
- "Presenting" versus "bearing" a U.S.A. passport when entering Canada from the U.S.A
- Was the "higher cipher" that Robert Graves describes in his novel "I, Claudius" a real historical cipher, or was it his invention?
- Why is the を particle used instead of the から particle?
- What are 'induced atmospheric variations', and how do they cause grid desynchronization? (Current Spain-wide power outage)
- Could OLS miss statistically significant coefficient because it's too small?
- Boundedness of projections onto more than two algebraic direct summands in Hilbert space decomposition
- Which Western countries are looking to cancel procurement/collaboration programs for US weapon systems and how far has that proceeded?
- What happens if I lose control of a creature affected by Act of Treason?
- Suggestion for data analysis with meteorological data
- Is Vicente Valtieri's depiction in Oblivion Remastered consistent with The Elder Scrolls lore regarding Morrowind vampires?
- Mechanism of cyclopropane ring formation from malonate ester
- Is Backpropagation faulty?
- Slow SQL query with nested subquery
- How to only replace x^1 not x^n
- How could technological development be significantly accelerated without a major war?